<?php
/**
* @package 		Facebook Connect Extension (joomla 3.x)
* @copyright	Copyright (C) Computer - http://www.sanwebe.com. All rights reserved.
* @license		http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* @author		Saran Chamling
* @download URL	http://www.sanwebe.com
*/
// No direct access
defined('_JEXEC') or die('Restricted access'); 
$document 			= JFactory::getDocument();
$document->addStyleSheet('components/com_fbconnct/assets/fbbackend.css');

?>
<div class="span6">
    <div class="well well-small">
        <div class="module-title nav-header">Facebook Login Extention (v 3.2e) - Instructions</div>
        <div class="row-striped">
          <div class="row-fluid">1. Make sure your host supports supports <a href="http://www.php.net/manual/en/intro.curl.php" target="_blank">PHP curl</a>, Most hosts support this.</div>
          <div class="row-fluid">2. <a href="http://www.sanwebe.com/2011/11/creating-facebook-application-for-your-site/" target="_blank">Setup Application</a> in facebook for your website.</div>
          <div class="row-fluid">3. Copy <u>App ID</u> and <u>App secret</u> from your facebook app settings.</div>
          <div class="row-fluid">4. Click <b>Options</b> on top of this page, and enter <u>app ID</u> and <u>App Secret.</u></div>
          <div class="row-fluid">5. In <b>Module Manager</b>, <u>ENABLE</u> <b>Facebook Login Module</b>.</div>
        </div>
    </div>
    
    <div class="well well-small">
        <div class="module-title nav-header">Login Button Without Login Module</div>
        <div class="row-striped">
          <div class="row-fluid">If you wish to display login button without Facebook login module, follow the steps.</div>
          <div class="row-fluid">Code &amp; Paste the code in your template or article where you want popup link to appear:<br /><textarea style="width:300px;height:50px;background:#FFFFCC;"><a href="#" onclick="window.open('<?php 
		  echo  JRoute::_(JURI::root().'index.php?option=com_fbconnct&task=login&format=raw'); 		  
		  ?>','name','height=300,width=550');return false;" >Login with Facebook</a></textarea></div>
        </div>
    </div>
    
    <div class="well well-small">
        <div class="module-title nav-header">Changelog</div>
        <div class="row-striped">
         <ul>
         <li><span class="badge badge- hasTooltip" title="" data-original-title="Hits">3.2e</span> Added Wall publish, fixed infinite loop in multilingual websites</li>
         <li><span class="badge badge- hasTooltip" title="" data-original-title="Hits">3.2e</span> Fixed "Undefined Password" while registration</li>
         <li><span class="badge badge- hasTooltip" title="" data-original-title="Hits">3.1e</span> Checks invalid Facebook Email</li>
         <li><span class="badge badge- hasTooltip" title="" data-original-title="Hits">3.0e</span> Modified to work with only Joomla 3.0</li>
         <li><span class="badge badge- hasTooltip" title="" data-original-title="Hits">3.00</span> Total modification. Updated Facebook PHP SDK (v.3.2.2)</li>
			<li><span class="badge badge- hasTooltip" title="" data-original-title="Hits">2.xx</span> No longer supported!</li>
    	</ul>           
       </div>
    </div>
</div>
<div class="span4">
    <div class="well well-small">
        <div class="module-title nav-header">Login with Facebook</div>
        <div class="row-striped">Login with Facebook is developed and maintained by Saran. He blogs at <a href="http://www.saaraan.com" target="_blank">Sanwebe.com</a>. You can say hi to him at <a href="https://twitter.com/saaraan" target="_blank">Twitter</a>!<br /><br />
        </div>
    </div>
    
    <div class="well well-small">
        <div class="module-title nav-header">Support Author</div>
This extention is a side project &amp; author doesn't make any money. Please keep this project alive by buying him coffee, so he can focus more on this extension &amp; boost his morale.
<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="saaraan@gmail.com">
<input type="hidden" name="item_name" value="fbconnectcom">
<input type="hidden" name="currency_code" value="USD">
<table width="100%" border="0">
  <tr>
    <td>USD</td>
    <td><input type="text" name="amount" value="10"></td>
  </tr>
  <tr>
    <td colspan="2" align="center"><input type="image" src="components/com_fbconnct/assets/paypal-buy.gif" style="border:none" border="0" name="submit"></td>
    </tr>
</table>

<div style="margin-top:5px;" align="center"><span class="style1"><a href="http://extensions.joomla.org/extensions/access-a-security/site-access/authentication-cloud-based/16350" target="_blank">Review it</a> | <a href="http://www.sanwebe.com/forums/forum/general-discussions" target="_blank">Support</a> | <a href="http://www.sanwebe.com/2012/04/facebook-connect-2-0-for-joomla" target="_blank">Download</a></span></div>
</form>
</div>

</div>